package cn.chen.thread;

import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;

public class ThreadLocal11 {

    public static ThreadLocal<String> t1 = new ThreadLocal<>();

    public static void main(String[] args) {
        if(t1.get() == null){
            System.out.println("null");
            t1.set("my value");
        }
        System.out.println(t1.get());
        System.out.println(t1.get());
    }

}
